package
        com.zzc.fee.controller.apis;

import com.hos.entity.his.Registration;
import com.hos.vo.Result;
import com.zzc.fee.service.WorkloadService;
import com.zzc.fee.vo.RegistrationVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author：xIAO_ZHOU_TX
 * @date：Created in 2023/12/25 11:04
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/fee/api/statistics/workload")
@Api(value = "工作量统计相关接口",tags = "工作量统计相关接口")
public class APIWorkloadController {
    @Resource
    private WorkloadService workloadService;

    @PostMapping("/queryWorkload")
    @ApiOperation("医生工作量统计列表")
    public Result<List<Registration>> queryWorkload(@RequestBody RegistrationVo registrationVo){
        return new Result<>(200,"查询成功",workloadService.queryWorkload(registrationVo));
    }

    @PostMapping("/queryWorkloadStat")
    @ApiOperation("总体的工作量统计列表")
    public Result<List<Registration>> queryWorkloadStat(@RequestBody RegistrationVo registrationVo){
        return new Result<>(200,"查询成功",workloadService.queryWorkloadStat(registrationVo));
    }






}